package org.tiger.springboot.redis.service;

import org.tiger.common.domain.ResponseBean;

public interface SecKillService {


    /**
     * 通过栅栏控制
     * @param secKillGoodsId
     * @return
     */
    ResponseBean<Object> secKillByCountDownLatch(String secKillGoodsId);

    /**
     * 通过锁控制
     * @param secKillGoodsId
     * @return
     */
    ResponseBean<Object> secKillByLock(String secKillGoodsId);

}
